package com.wg.web_app.domin;

import java.util.List;

import com.wg.web_app.domin.response.Group;
import com.wg.web_app.domin.response.User;

public class GroupBuilder {

	boolean idMark = false;
	private Integer id;
	private String name;
	private String detail;
	private List<User> users;
	
	public Group build() {
		return new Group(id, name, detail,users);
	}
	
	
	public GroupBuilder detail(String detail) {
		this.detail = detail;
		return this;
	}

	public GroupBuilder id(int id) {
		this.id = id;
		return this;
	}

	public GroupBuilder name(String name) {
		this.name = name;
		return this;
	}
	
	public GroupBuilder users(List<User> users) {
		this.users = users;
		return this;
	}
}
